<?php
namespace Mageplaza\HelloWorld\Block\Adminhtml;
use Magento\Framework\View\Element\Template;
use Mageplaza\HelloWorld\Model\PostFactory;

class Index extends \Magento\Framework\View\Element\Template
{
    private  $_postfactory;
    function  __construct(Template\Context $context,\Mageplaza\HelloWorld\Model\PostFactory $postFactory,array $data = [])
    {
        $this->_postfactory = $postFactory;
        parent::__construct($context, $data);
    }


}